package com.quanyan.comment.serviceFacade;

import com.quanyan.comment.annotation.TargetMethod;
import com.quanyan.comment.annotation.TargetService;
import com.quanyan.api.APIResponse;
import com.quanyan.comment.response.*;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.comment.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import com.quanyan.comment.reqeust.*;



import java.util.List;

/**
 * @Author Hugo.Wwg
 * @Since 2016-05-04
 */
@TargetService
public class UserService {

    @Autowired
    private CommentService commentService;


//    @Autowired
//    private RoleService roleService;

    /**
     * 增加评论
     * @param reqCommentParam
     * @return
     */
    @TargetMethod("commentAdd")
    public APIResponse commentAdd(ReqCommentParam reqCommentParam){
        return  commentService.commentAdd(reqCommentParam);
    }


    /**
     * 查询评论
     * @param reqCommentQuery
     * @return
     */
    @TargetMethod("commentQuery")
    public APIResponse<PageObj<List<RespComment>>> commentQuery(ReqCommentQuery reqCommentQuery){
        return commentService.commentQuery(reqCommentQuery);
    }


    /**
     * 评论删除
     * @param commentId
     * @return
     */
    @TargetMethod("commentDel")
    public APIResponse commentDel(Integer commentId){
        return commentService.commentDel(commentId);
    }


    /**
     * 获取评论项目详情
     * @param
     * @return
     */
    @TargetMethod("getCommentDetailPro")
    public APIResponse<List<RespCommentDetail>> getCommentDetailPro(String businessCode,Integer businessId){
        return  null;
    }


    /**
     * 获取评论项目详情 分数
     * @param commentId
     * @return
     */
    @TargetMethod("getCommentDetailScore")
    public APIResponse<List<RespCommentDetailScore>> getCommentDetailScore(Integer commentId){
      return  null;
    }


//    /**
//     * 用户收藏
//     * @param reqUserCollect
//     * @return
//     */
//    @TargetMethod("userCollect")
//    public APIResponse userCollect(ReqUserCollect reqUserCollect){
//        return  userCollectService.userCollect(reqUserCollect);
//    }
//
//
//    /**
//     * 用户取消收藏
//     * @param reqUserCollect
//     * @return
//     */
//    @TargetMethod("cancleUserCollect")
//    public APIResponse cancleUserCollect(ReqUserCollect reqUserCollect){
//        return  userCollectService.cancelUserCollect(reqUserCollect);
//    }
//
//
//    /**
//     * 查询用户收藏
//     * @return
//     */
//    @TargetMethod("queryUserCollect")
//    public APIResponse<PageObj<List<RespUserCollect>>> queryUserCollect(ReqUserCollectQuery reqUserCollectQuery){
//        return userCollectService.queryUserCollect(reqUserCollectQuery);
//    }

    /**
     * 获取系统角色
     * @param systemCode 系统编码
     */
//    @TargetMethod("getSystemRole")
//    public APIResponse<List<RespSystemRole>> getSystemRole(String systemCode){
//        return  roleService.getRoleBySystemCode(systemCode);
//    }

    /**
     * 获取角色权限
     * @param roleCode
     * @return
     */
//    @TargetMethod("getAuthorityByRoleCode")
//    public APIResponse<List<RespAuthority>> getAuthorityByRoleCode(String roleCode){
//        return roleService.getAuthorityByRoleCode(roleCode);
//    }
}
